#!/usr/bin/env python

import sys

a1 = file(sys.argv[1],'rb')
a2 = file(sys.argv[2],'rb')

diferencas = 0
while diferencas < 8:
    c1 = a1.read(2)
    c2 = a2.read(2)
    if c1 != c2:
        diferencas += 1
        simb = '!'
    else:
        simb = '='
    s1 = '%3d %3d %-6s' % (ord(c1[0]),ord(c1[1]),repr(c1[1]))
    s2 = '%3d %3d %-6s' % (ord(c2[0]),ord(c2[1]),repr(c2[1]))
    print '%s %s %s' % (s1, simb, s2)
    
    
    